import 'package:flutter/material.dart';
import 'fromHttp.dart';
import 'fromFile.dart';
import 'fromResource.dart';
import 'home.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'MJPEG View Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      routes: {
        'home': (context) => HomePage(),
        'fromHttpPage': (context) => FromHttpPage(),
        'fromFilePage': (context) => FromFilePage(),
        'fromResourcePage': (context) => FromResourcePage()
      },
      initialRoute: 'home',
    );
  }
}

